package com.gss.armory.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.gss.armory.domain.UserActivityGroup.DocActivityType;

@Entity
@Table(name="DOCUMENT_TRACK_DETAILS")
public class DocumentTrackDetailsDTO implements Serializable {

	private long docId;
	private String userId;
	private DocActivityType permission;
	private Date timeStamp;
	
	@Id
	@Column(name="DT_USER_ID")
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Id
	@Column(name="DT_ACCESS_TIMSTAMP",nullable=false)
	@Temporal(TemporalType.TIMESTAMP)
	public Date getTimeStamp() {
		return timeStamp;
	}
	public void setTimeStamp(Date timeStamp) {
		this.timeStamp = timeStamp;
	}
	
	@Column(name="DT_DOC_ID")
	public long getDocId() {
		return docId;
	}
	public void setDocId(long docId) {
		this.docId = docId;
	}
	
	@Column(name="DT_DOC_PERMISSION")
	@Enumerated(value=EnumType.STRING)
	public DocActivityType getPermission() {
		return permission;
	}
	public void setPermission(DocActivityType permission) {
		this.permission = permission;
	}
}
